package com.zhibang.sinocare.common.domian;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 10.检测项结果表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("scc_medical_result")
public class MedicalResult {
    @TableId(value ="result_id" ,type = IdType.ASSIGN_ID)
    private Integer resultId;
    private Integer patientId;
    private Integer surveyorId;
    private double bmiResult;
    private double gluResult;
    private Integer gluFoodStatus;
    private double hbaicResult;
    private Integer uaResult;
    private double hdlCResult;
    private double ldlCResult;
    private double tgResult;
    private double cholResult;
    private double tcHdlCResult;
    private double ketResult;
    private Integer sbpResult;
    private Integer dbpResult;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date updateTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date testTime;
    private Integer status;
    private String remark;
}
